package com.khalil.kkadmin.module.ai.agent.chatsession;

import com.khalil.kkadmin.infrastructure.jpa.domain.EntityBase;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

@Table(name = "ai_chat_session_message")
@EntityListeners(AuditingEntityListener.class)
@Entity
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
public class ChatSessionMessage extends EntityBase<Long> {
    private Long chatSessionId;

    private String role;

    private String content;

    private Long beforeId;

    public ChatSessionMessage() {

    }

    public static String ROLE_USER = "user";
    public static String ROLE_ASSISTANT = "assistant";
}
